home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
- Object = "{F9F138BB-2119-11D2-9F09-444553540000}#2.0#0"; "MAQMIDIA302.OCX"
- Begin VB.Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = "Maquisistem Midia - MP3 - OCX 3.0 Beta "
- ClientHeight = 5820
- ClientLeft = 45
- ClientTop = 615
- ClientWidth = 9960
- Icon = "Sample2.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 5820
- ScaleWidth = 9960
- StartUpPosition = 2 'CenterScreen
- Begin MaqMidia30.MaqMidia MaqMidia1
- Height = 495
- Left = 120
- TabIndex = 25
- Top = 0
- Width = 7575
- _ExtentX = 13361
- _ExtentY = 873
- End
- Begin ComctlLib.Slider Slider2
- Height = 375
- Left = 4080
- TabIndex = 22
- Top = 5280
- Width = 1935
- _ExtentX = 3413
- _ExtentY = 661
- _Version = 327682
- Max = 12
- End
- Begin ComctlLib.Slider Slider1
- Height = 375
- Left = 840
- TabIndex = 21
- Top = 5280
- Width = 1935
- _ExtentX = 3413
- _ExtentY = 661
- _Version = 327682
- Max = 12
- End
- Begin VB.CommandButton Command7
- Caption = "+"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 840
- TabIndex = 20
- Top = 4680
- Width = 495
- End
- Begin VB.CommandButton Command6
- Caption = "-"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 19
- Top = 4680
- Width = 495
- End
- Begin VB.CommandButton Command3
- Caption = "Delete the last entry"
- Height = 495
- Left = 6480
- TabIndex = 18
- Top = 4680
- Width = 1455
- End
- Begin VB.CommandButton Command5
- Caption = "Previous playback"
- Height = 495
- Left = 3240
- TabIndex = 15
- Top = 4680
- Width = 1575
- End
- Begin VB.CommandButton Command4
- Caption = "Clean the selection"
- Height = 495
- Left = 4920
- TabIndex = 12
- Top = 4680
- Width = 1455
- End
- Begin VB.CommandButton Command2
- Caption = "Next playback"
- Height = 495
- Left = 6480
- TabIndex = 11
- Top = 4080
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "Stop the execution"
- Height = 495
- Left = 4920
- TabIndex = 10
- Top = 4080
- Width = 1455
- End
- Begin VB.CommandButton Command11
- Caption = "Play the selection"
- Height = 495
- Left = 3240
- TabIndex = 9
- Top = 4080
- Width = 1575
- End
- Begin VB.ListBox List1
- Height = 1620
- Left = 120
- TabIndex = 8
- ToolTipText = "Here will apear your selection"
- Top = 2280
- Width = 7575
- End
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 120
- TabIndex = 7
- ToolTipText = "Select the drive"
- Top = 600
- Width = 1815
- End
- Begin VB.DirListBox Dir1
- Height = 1215
- Left = 120
- TabIndex = 6
- ToolTipText = "Select the directory where you can find your media files"
- Top = 960
- Width = 1815
- End
- Begin VB.FileListBox File1
- Height = 1650
- Left = 2040
- Pattern = "*.mp3;*.mpg;*.wav;*.mpa;*.mid"
- System = -1 'True
- TabIndex = 5
- ToolTipText = "Click in the file to add it to the selection box"
- Top = 600
- Width = 5655
- End
- Begin VB.CommandButton Command10
- Caption = "Normal speed"
- Height = 255
- Left = 1440
- TabIndex = 4
- Top = 4680
- Width = 1455
- End
- Begin ComctlLib.Slider Slider5
- Height = 495
- Left = 1320
- TabIndex = 0
- Top = 4080
- Width = 1695
- _ExtentX = 2990
- _ExtentY = 873
- _Version = 327682
- End
- Begin VB.Label Label6
- Caption = "Master"
- Height = 255
- Left = 3240
- TabIndex = 24
- Top = 5280
- Width = 735
- End
- Begin VB.Label Label5
- Caption = "Wave"
- Height = 255
- Left = 240
- TabIndex = 23
- Top = 5280
- Width = 615
- End
- Begin VB.Label Label4
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 375
- Left = 8640
- TabIndex = 17
- Top = 1080
- Width = 1095
- End
- Begin VB.Label Label3
- Caption = "Position"
- ForeColor = &H00008000&
- Height = 255
- Left = 7800
- TabIndex = 16
- Top = 1080
- Width = 615
- End
- Begin VB.Label Label2
- Caption = "Files selecteds :"
- ForeColor = &H00004080&
- Height = 255
- Left = 7800
- TabIndex = 14
- Top = 2280
- Width = 1095
- End
- Begin VB.Label Label1
- Caption = "0"
- ForeColor = &H00004080&
- Height = 255
- Left = 9000
- TabIndex = 13
- Top = 2280
- Width = 615
- End
- Begin VB.Label Label9
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 375
- Left = 8640
- TabIndex = 3
- Top = 600
- Width = 1095
- End
- Begin VB.Label Label8
- Caption = "Length"
- ForeColor = &H00008000&
- Height = 255
- Left = 7800
- TabIndex = 2
- Top = 600
- Width = 615
- End
- Begin VB.Label Label7
- Caption = "Playback Speed"
- Height = 255
- Left = 120
- TabIndex = 1
- ToolTipText = "Click here to default speed"
- Top = 4200
- Width = 1335
- End
- Begin VB.Menu about
- Caption = "About"
- End
- Begin VB.Menu hlp
- Caption = "Help"
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Public Myposition
- Public tocar As Boolean
- Public pular As Boolean
- Public espera As Boolean
- Private Sub about_Click()
- MaqMidia1.AboutBox
- End Sub
- Private Sub Command1_Click()
- tocar = False
- MaqMidia1.StopMidia
- End Sub
- Private Sub Command10_Click()
- Slider5.Value = 25
- End Sub
- Private Sub Command11_Click()
- If List1.ListCount = 0 Then Exit Sub
- tocar = True
- List1.ListIndex = -1
- List1.ListIndex = 0
- End Sub
- Private Sub Command16_Click()
- MaqMidia1.PauseMidia
- End Sub
- Private Sub Command17_Click()
- If Command17.Caption = "Hide" Then
- Command17.Caption = "Show"
- MaqMidia1.Visible = False
- Command17.Caption = "Hide"
- MaqMidia1.Visible = True
- End If
- End Sub
- Private Sub Command2_Click()
- If List1.ListCount = 0 Then Exit Sub
- If (List1.ListCount - 1) = List1.ListIndex Then Exit Sub
- List1.ListIndex = List1.ListIndex + 1
- End Sub
- Private Sub Command3_Click()
- If List1.ListCount = 0 Then
- Label1.Caption = List1.ListCount
- Exit Sub
- End If
- List1.RemoveItem (List1.ListCount - 1)
- Label1.Caption = List1.ListCount
- End Sub
- Private Sub Command4_Click()
- List1.Clear
- End Sub
- Private Sub Command5_Click()
- If List1.ListIndex = -1 Then Exit Sub
- If List1.ListCount = 0 Then Exit Sub
- List1.ListIndex = List1.ListIndex - 1
- End Sub
- Private Sub Command6_Click()
- Slider5.Value = Slider5.Value - 1
- End Sub
- Private Sub Command7_Click()
- Slider5.Value = Slider5.Value + 1
- End Sub
- Private Sub Command8_Click()
- End Sub
- Private Sub Dir1_Change()
- File1.Path = Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- Dir1.Path = Drive1.Drive
- End Sub
- Private Sub File1_Click()
- List1.AddItem Dir1.Path & "\" & File1.filename
- Label1.Caption = List1.ListCount
- End Sub
- Private Sub Form_Activate()
- MaqMidia1.InitializeMixer
- End Sub
- Private Sub Form_Load()
- Slider5.Min = 0
- Slider5.Max = 50
- Slider5.Value = 25
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- MaqMidia1.StopMidia
- End Sub
- Private Sub Form_Resize()
- DoEvents
- End Sub
- Private Sub Form_Terminate()
- MaqMidia1.StopMidia
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- MaqMidia1.StopMidia
- End Sub
- Private Sub hlp_Click()
- Dim retval
- retval = Shell("Winhlp32 MAQMID302.HLP", 1)
- End Sub
- Private Sub List1_Click()
- espera = False
- If tocar = False Then Exit Sub
- pular = True
- MaqMidia1.Midiafile List1.Text, False, True
- pular = False
- End Sub
- Private Sub List1_DblClick()
- espera = False
- pular = True
- MaqMidia1.Midiafile List1.Text, False, True
- pular = False
- End Sub
- Private Sub MaqMidia1_DblClick()
- MsgBox "double click"
- End Sub
- Private Sub MaqMidia1_Finished()
- If tocar = False Then Exit Sub
- If pular = True Then Exit Sub
- If (List1.ListCount - 1) <> List1.ListIndex Then
- List1.ListIndex = List1.ListIndex + 1
- MaqMidia1.StopMidia
- End If
- End Sub
- Private Sub MaqMidia1_MidiaLength(Length As String)
- espera = True
- Label9.Caption = Length
- If (List1.ListCount - 1) = List1.ListIndex Then Exit Sub
- If Length = "00:00" Then
- List1.ListIndex = List1.ListIndex + 1
- End If
- End Sub
- Private Sub MaqMidia1_MidiaPosition(Length As String)
- espera = True
- Label4.Caption = Length
- End Sub
- Private Sub MaqMidia1_PositionChanged(Position As Long)
- Myposition = Position
- End Sub
- Private Sub Slider5_Change()
- MaqMidia1.MidiaSpeed (Slider5.Value * 40)
- End Sub
- Private Sub Slider5_scroll()
- MaqMidia1.MidiaSpeed (Slider5.Value * 40)
- End Sub
- Private Sub Slider1_Scroll()
- MaqMidia1.WaveMovieVolumeSet Slider1.Value, Slider1.Value
- End Sub
- Private Sub MaqMidia1_waveMovieVolumeRefresh(LeftVolume As Long, RightVolume As Long)
- If LeftVolume <> RightVolume Then
- Slider1.Value = ((LeftVolume + RightVolume) / 2) ' if you have two sliders to rigth or left channel then set any channel to the repective output
- Slider1.Value = LeftVolume
- End If
- End Sub
- Private Sub Slider2_Scroll()
- MaqMidia1.MasterVolumeSet Slider2.Value, Slider2.Value
- End Sub
- Private Sub MaqMidia1_MasterVolumeRefresh(LeftVolume As Long, RightVolume As Long)
- If LeftVolume <> RightVolume Then
- Slider2.Value = ((LeftVolume + RightVolume) / 2) ' if you have two sliders to rigth or left channel then set any channel to the repective output
- Slider2.Value = LeftVolume
- End If
- End Sub
-